package com.tengju.data.domain.model.motivation;

import com.tengju.user.domain.model.Row;
import com.tengju.user.domain.model.user.UserIdCode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DwsBonusTopYearRepository {

    /**
     * 年度收益个人排行
     */
    Row getSelfYearRank(UserIdCode userIdCode,
                        Integer year,
                        Integer lastYear,
                        Integer topLimit);

    /**
     * 年度收益总排行
     */
    List<Row> getAllYearRank(Integer year,
                             Integer topLimit,
                             Integer offset,
                             Integer limit);

    List<Row> getByIdCodeAndYear(List<UserIdCode> idCodeList,
                                 Integer year,
                                 Integer topLimit);

    Integer getTotal(Integer year,
                     Integer topLimit);
}
